LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := 三级头ImGui内核自瞄.sh
LOCAL_CFLAGS := -std=c++17
LOCAL_CPPFLAGS := -std=c++17
LOCAL_CFLAGS += -Wno-error=format-security -w
LOCAL_CFLAGS += -fno-rtti -fpermissive -fvisibility=hidden
LOCAL_CPPFLAGS += -Wno-error=format-security -fpermissive -w -Werror -s 
LOCAL_CPPFLAGS += -fno-rtti -fms-extensions -Wno-error=c++11-narrowing -fvisibility=hidden


#引入头文件到全局#
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include/ImGui
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include/自定义
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include/My_Utils

LOCAL_SRC_FILES := \
    src/main.cpp \
    src/draw.cpp \
    src/悬浮窗.cpp \
    src/绘制.cpp \
    src/绘图.cpp \
    src/计算.cpp \
    src/Kernel.cpp \
    src/ImGui/TouchHelperA.cpp \
    src/ImGui/imgui.cpp \
    src/ImGui/imgui_draw.cpp \
    src/ImGui/imgui_tables.cpp \
    src/ImGui/imgui_widgets.cpp \
    src/ImGui/imgui_impl_android.cpp \
    src/自定义/imgui_Custom.cpp \
    src/自定义/HttpRequest.cpp \
    src/My_Utils/stb_image.cpp \
    
    
    LOCAL_SRC_FILES += src/ImGui/imgui_impl_opengl3.cpp
    LOCAL_SRC_FILES += src/My_Utils/imgui_image.cpp
    
#LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv3
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM -lGLESv2 -lGLESv3
LOCAL_STATIC_LIBRARIES := curl_static wolfssl_static zstd_static z_static

LOCAL_LDFLAGS += $(LOCAL_PATH)/lib/*.a
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_MODULE := curl_static
LOCAL_SRC_FILES := src/ImGui/Library/libcurl.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := wolfssl_static
LOCAL_SRC_FILES := src/ImGui/Library/libwolfssl.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := zstd_static
LOCAL_SRC_FILES := src/ImGui/Library/libzstd.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := z_static
LOCAL_SRC_FILES := src/ImGui/Library/libz.a
include $(PREBUILT_STATIC_LIBRARY)
